package com.test.demo01;

import com.test.demo02.Host;
import com.test.demo02.Rent;

// 代理中介
public class Proxy implements Rent {
    private Host host;

    public Proxy() {
    }

    public Proxy(Host host) {
        this.host = host;
    }

    public void rent() {
        //
        seeHose(); //看房
        host.rent();
        fare();
    }

    //看房，属于附加的操作，可以看多个房子
    public void seeHose(){}
    // 收中介费
    public void fare(){}
}
